﻿using ProduceBasicData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProduceBasicData.Domain.ProductionManage
{
    /// <summary>
    /// 工单管理
    /// </summary>
    public class Work_order: BaseModel
    {
        /// <summary>
        /// 系统编码
        /// </summary>
        public string? Order_no { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string Work_type { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public int Customer_id { get; set; }
        /// <summary>
        /// Bomid
        /// </summary>
       public int Product_id { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        public int Producttion_id { get; set; }
        /// <summary>
        /// 订单数量
        /// </summary>
        public int Order_number { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime Start_time { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime End_time { get; set; }
        /// <summary>
        /// 工单状态  1初始化,2待审批,3已下发,4已完成,5领料中,6生产中
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public string Upload { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Work_Desc { get; set; }

        /// <summary>
        /// 车间管理外键
        /// </summary>
        public int WorkshopId { get; set; }


    }
}
